package cn.edu.sdjzu.xg.bysj.domain;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
@Getter
@Setter
public class OpenArea implements Comparable<OpenArea>, Serializable {
    private int id;
    private String area;
    private GraduateProjectCategory graduateProjectCategory;
    private Teacher teacher;
    private String requirement;
    private int positionNum;
    private int year;
    public OpenArea(
            String area,GraduateProjectCategory graduateProjectCategory,
            Teacher teacher,String requirement,int positionNum,int year){
        this.area = area;
        this.graduateProjectCategory = graduateProjectCategory;
        this.teacher = teacher;
        this.requirement =requirement;
        this.positionNum = positionNum;
        this.year = year;
    }

    public OpenArea(
            int id,String area,GraduateProjectCategory graduateProjectCategory,
            Teacher teacher,String requirement,int positionNum,int year){
        this(area,graduateProjectCategory,teacher,requirement,positionNum,year);
        this.id = id;
    }

    @Override
    public int compareTo(OpenArea o) {
        return this.id-o.id;
    }
}
